package com.yanqu.road.logic.activity;

/**
 * 上下限及值
 */
public class UpLowLimitEntity {

    private int upLimit;

    private int lowLimit;

    private long value;

    public UpLowLimitEntity(int lowLimit, int upLimit, long value) {
        this.lowLimit = lowLimit;
        this.upLimit = upLimit;
        this.value = value;
    }

    /*
            是否在范围内
         */
    public boolean inRange(int value) {
        if (value >= lowLimit && value <= upLimit) {
            return true;
        }
        return false;
    }

    public int getUpLimit() {
        return upLimit;
    }

    public void setUpLimit(int upLimit) {
        this.upLimit = upLimit;
    }

    public int getLowLimit() {
        return lowLimit;
    }

    public void setLowLimit(int lowLimit) {
        this.lowLimit = lowLimit;
    }

    public long getValue() {
        return value;
    }

    public void setValue(long value) {
        this.value = value;
    }
}
